﻿using DataAccessLayer;

namespace DataAccessLayer
{
    public sealed class EnemyFactory : EnemyFactoryBase
    {
        public override Enemy ConstructEnemy(int hp, int power, int speed, EditorRect sourceRect, EditorRect colRect)
        {
            return new NormalEnemy
                       {
                           Hp = hp,
                           Power = power,
                           Speed = speed,
                           SourceRect = sourceRect,
                           CollisionRectangle = colRect
                       };
        }
    }
}